package com.shortUrl.starter;

import com.shortUrl.starter.verticle.DbVerticle;
import com.shortUrl.starter.verticle.HttpVerticle;
import com.shortUrl.starter.verticle.RedisVerticle;

import io.vertx.core.AbstractVerticle;
import io.vertx.core.Promise;

public class MainVerticle extends AbstractVerticle {

    @Override
    public void start(Promise<Void> startPromise) throws Exception {
        vertx.deployVerticle(new HttpVerticle());
        vertx.deployVerticle(new RedisVerticle());
        vertx.deployVerticle(new DbVerticle());
    }

}
